package com.zmm.myyimixian.ui.activity.personal;

import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.zmm.myyimixian.MyApp;
import com.zmm.myyimixian.R;
import com.zmm.myyimixian.base.BaseActivity;

import butterknife.BindView;

/**
 * 个人中心界面
 */

public class PersonalActivity extends BaseActivity {
    @BindView(R.id.personal_data_bar)
    Toolbar personalDataBar;
    @BindView(R.id.personal_iv_hend)
    ImageView presonalIvHend;
    @Override
    protected void initView() {
        //设置头像
        Glide.with(this).load(MyApp.getFigureurl()).error(R.mipmap.ic_launcher).placeholder(R.mipmap.ic_launcher).into(presonalIvHend);
        //处理返回按钮
        personalDataBar.setNavigationOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                    finish();
            }
        });
    }

    @Override
    public int getLayoutId() {
        return R.layout.activity_personal;
    }

}
